var bmap = require('../../utils/bmap-wx.min.js');
Page({
  data: {
    longitude: 112.98977,
    latitude: 28.11415,
    markers: [],
  },

  onLoad: function() {
    var BMap = new bmap.BMapWX({
      ak: 'WlHP2D6KKVHbCzpPteIBUMGXhUIoZKWu'
    });
    this.data.markers.push({
      longitude: this.data.longitude,
      latitude: this.data.latitude,
      iconPath: '../../imgs/onLine.gif',
      width: 25,
      height: 44,
      id: 1,
      alpha: 1,
    });
    this.setData({
      markers: this.data.markers
    });
  }
})